package org.dromara.iot.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.iot.domain.IotFaultRecord;

/**
 * 电梯维修记录业务对象 iot_fault_record
 *
 * @author lsl
 * @date 2024-06-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IotFaultRecord.class, reverseConvertGenerate = false)
public class IotFaultRecordBo extends BaseEntity {

    /**
     * 记录ID
     */
    @NotNull(message = "记录ID不能为空", groups = {EditGroup.class})
    private Long recordId;

    /**
     * 关联维修ID
     */
    @NotNull(message = "关联维修ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long faultId;

    /**
     * 记录标题
     */
    @NotBlank(message = "记录标题不能为空", groups = {AddGroup.class, EditGroup.class})
    private String tiringState;

    /**
     * 经度
     */
    @NotBlank(message = "经度不能为空", groups = {AddGroup.class, EditGroup.class})
    private String longitude;

    /**
     * 纬度
     */
    @NotBlank(message = "纬度不能为空", groups = {AddGroup.class, EditGroup.class})
    private String latitude;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;

    private Long repairId;
}
